<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>安全认证 - 我的管理中心</title>
{include file="head"}
<link href="/static/thinkct/css/basic.css?v=1" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/jquery.m.js"></script><script language="javascript" src="/static/thinkct/js/layui/layui.js"></script><script language="javascript" src="/static/thinkct/js/common.js?v=1"></script><script language="javascript" src="/static/thinkct/js/member.js?v=1"></script><link href="/static/thinkct/css/member.css?v=1" rel="stylesheet" type="text/css" /><link href="/static/thinkct/js/layui/css/layui.css" rel="stylesheet" type="text/css" /></head>
<body>
<!--头部-->
{include file="uhead"}

<!--头部-->
<div class="umain">
{include file="uleft"}
<div class="uright">
<div class="mwz">
	<li class="cur"><a href='/member/central'>安全认证</a></li>
</div>
{if(cookie('SafeTipsNo') != 1)}		
<div class="demandtips" style="margin:10px 0 0 0;padding:5px 10px;">
	<a class="close" title="本次登录期间不再提示" onclick="$('.demandtips').fadeOut('slow');$.cookie('SafeTipsNo',1,{expires:365, path: '/', domain: '{:sysconf('site_domain')}'});">X</a>
	<p class="title" style="font-size:12px;padding:0 0 0 20px"><i class="icons"></i>安全提示：近日发生多起因撞库（即在其它被入侵或钓鱼平台注册的账号使用了与{:sysconf('site_name')}相同的账号密码）、密码过于简单而导致账号被盗的案例；因此建议您及时关闭【常规登录】或启用【登录白名单】，以降低帐号被盗风险！</p>
</div>{/if}
<table class="SafeTable noodd">
	<tr>
		<td class='title'><h3>安全</h3></td>
	</tr>
	<tr>
		<td class='SafeText'>
			<dl>
				<dt>登录密码</dt><dd><span>安全性高的密码可以使帐号更安全，建议您定期更换密码</span></dd>
				<div class="action"> <cite><i class="iconfont">&#xe6e5;</i>已设置</cite><a href="/member/change/pass" target="_blank">修改</a><a href="/member/fetch/pass" target="_blank">找回</a></div>
			</dl>
			<dl>
				<dt>安全码</dt><dd><span>类似于支付宝的支付密码，如余额支付、提现等敏感操作时需要验证</span></dd>
								<div class="action"><cite><i class="iconfont">&#xe6e5;</i>已设置</cite><a href="/member/change/safe" target="_blank">修改</a><a href="/member/fetch/safe" target="_blank">找回</a></div>
							</dl>
			<dl>
				<dt>常规登录</dt><dd><span>关闭后将禁止帐号+密码方式登录，降低帐号被盗风险（不影响手机验证和快捷登录）</span></dd>
					<div class="action">
					{if($user.regular==1)}
						<cite class="risk">
							<i class="iconfont">&#xe6e0;</i>未关闭
						</cite><a href="javascript:void(0)" {if array_sum($count)==0}onclick="BindLogin()"{else}onclick="Regular_login(0,this)"{/if}>关闭</a>
					{/if}
					{if($user.regular==0)}
						<cite>
							<i class="iconfont">&#xe6e5;</i>已关闭
						</cite><a href="javascript:void(0)" onclick="Regular_login(1,this)">开启</a>
					{/if}
					</div>
				</dl>
			<dl>
				<dt>登录白名单</dt><dd><span>白名单分为IP与地区。设置启用后，必须符合任一条件方可登录（手机验证登录除外）</span>
								</dd>
				<div class="action">
					<cite class="not"><i class="iconfont">&#xe6e8;</i>未启用</cite><a onclick="whitelist()">设置</a><a class="preview" good='login' action='protect' scroll=true>日志</a>
				</div>
							</dl>
		</td>

	</tr>
	<tr>
		<td class='title'><h3>认证</h3></td>
	</tr>
	<tr>
		<td class='SafeText'>
			
			<dl>
				<dt>邮箱认证</dt><dd><span>用于邮箱方式登录帐号、接收订单提醒、找回密码等</span></dd>
					<div class="action">
						<cite {if($user.email_zt==0)}class="not"{/if}>
						{if($user.email_zt==1)}
							<i class="iconfont">&#xe6e5;</i>已认证
						{else}
							<i class="iconfont">&#xe6e8;</i>未认证
						{/if}	
						</cite><a href="/member/verify/email" target="_blank">认证</a>
					</div>
				</dl>
			<dl>
				<dt>手机认证</dt><dd><span>用于手机验证方式登录帐号、接收重要的订单提醒、交易双方互相联系等</span></dd>
					<div class="action">
						<cite {if($user.phone_zt==0)}class="not"{/if}>
						{if($user.phone_zt==1)}
							<i class="iconfont">&#xe6e5;</i>已认证
						{else}
							<i class="iconfont">&#xe6e8;</i>未认证
						{/if}	
						</cite><a href="/member/verify/phone" target="_blank">认证</a>
					</div>
				</dl>
			<dl>
				<dt>身份认证</dt><dd><span>用于商家店铺认证、余额提现、品牌发布认领等</span></dd>
					<div class="action">
						<cite {if($user.idcard==0)}class="not"{/if}>
						{if($user.idcard==1)}
							<i class="iconfont">&#xe6e5;</i>已认证
						{else}
							<i class="iconfont">&#xe6e8;</i>未认证
						{/if}
						</cite><a href="/member/certification/idcard" target="_blank">管理</a>
					</div>
				</dl>
			<dl>
				<dt>企业认证</dt><dd><span>用于商家店铺认证、余额提现、品牌发布认领等</span></dd>
					<div class="action">
						<cite {if($user.company==0)}class="not"{/if}>
						{if($user.company==1)}
							<i class="iconfont">&#xe6e5;</i>已认证
						{else}
							<i class="iconfont">&#xe6e8;</i>未认证
						{/if}
						</cite><a href="/member/certification/company" target="_blank">认证</a>
					</div>
				</dl>
		</td>

	</tr>

	<tr>
		<td class='title SafeLoginTitle' ><h3>快捷登录</h3> <span>绑定第三方账号可以一键快捷登录{:sysconf('site_name')}，每一种账号类型都可以绑定5个不同的账号</span></td>
	</tr>
	<tr>
		<td class='SafeLogin'>
					<div>
			<dl>
				<dt id='qq' title="QQ"></dt>
								<dd class="action">{if $count.qq==0}<cite class="not"><i class="iconfont">&#xe6e8;</i>未绑定</cite>{else}<cite><i class="iconfont">&#xe6e5;</i>已绑定</cite>{/if}<br>{if $count.qq!=0}<a class='oauth_admin' data="QQ" style='padding-left:1px'>管理</a>{/if}<a class="login_click" id="qq" title="绑定QQ登录">绑定</a></dd>
							</dl>
			</div>
					<div>
			<dl>
				<dt id='wechat' title="微信"></dt>
								<dd class="action">{if $count.wechat==0}<cite class="not"><i class="iconfont">&#xe6e8;</i>未绑定</cite>{else}<cite><i class="iconfont">&#xe6e5;</i>已绑定</cite>{/if}<br>{if $count.wechat!=0}<a class='oauth_admin' data="微信" style='padding-left:1px'>管理</a>{/if}<a style='padding-left:1px' class="login_click" id="wechat" title="绑定微信登录">绑定</a></dd>
							</dl>
			</div>
					<div>
			<dl>
				<dt id='sina' title="微博"></dt>
								<dd class="action">{if $count.sina==0}<cite class="not"><i class="iconfont">&#xe6e8;</i>未绑定</cite>{else}<cite><i class="iconfont">&#xe6e5;</i>已绑定</cite>{/if}<br>{if $count.sina!=0}<a class='oauth_admin' data="微博" style='padding-left:1px'>管理</a>{/if}<a style='padding-left:1px' class="login_click" id="sina" title="绑定微博登录">绑定</a></dd>
							</dl>
			</div>
					<div>
			<dl>
				<dt id='baidu' title="百度"></dt>
								<dd class="action">{if $count.baidu==0}<cite class="not"><i class="iconfont">&#xe6e8;</i>未绑定</cite>{else}<cite><i class="iconfont">&#xe6e5;</i>已绑定</cite>{/if}<br>{if $count.baidu!=0}<a class='oauth_admin' data="百度" style='padding-left:1px'>管理</a>{/if}<a style='padding-left:1px' class="login_click" id="baidu" title="绑定百度登录">绑定</a></dd>
							</dl>
			</div>
					<div>
			<dl>
				<dt id='alipay' title="支付宝"></dt>
								<dd class="action">{if $count.alipay==0}<cite class="not"><i class="iconfont">&#xe6e8;</i>未绑定</cite>{else}<cite><i class="iconfont">&#xe6e5;</i>已绑定</cite>{/if}<br>{if $count.alipay!=0}<a class='oauth_admin' data="支付宝" style='padding-left:1px'>管理</a>{/if}<a style='padding-left:1px' class="login_click" id="alipay" title="绑定支付宝登录">绑定</a></dd>
							</dl>
			</div>
				</td>
	</tr>
</table>
<script language="javascript" type="text/javascript">
$(".oauth_admin").on('click',function () {
var cur=$(this).attr("data");
layer.tab({
	shadeClose:true,
	move: false,
		area: ['700px', '250px'],
		tab: [
		{
			title: 'QQ<font class="gray">（<font class="Num_qq">{$count.qq}</font>）</font>', 
			content: '<table class="tablelist" style="width:698px;border-bottom: solid 1px #eee;"><thead><tr><td width="24%">最后登录信息</td><td width="24%">最后登录时间</td><td width="24%">绑定时间</td><td width="18%">最后登录IP</td><td width="10%">操作</td></tr>  </thead>{foreach $list.qq as $v}<tbody><tr><td valign=middle><img style="vertical-align:middle;" src="{$v.tx}" height=24  width=24>  {$v.name}</td><td>{$v.login}</td><td>{$v.sj}</td><td>{$v.uip}</td><td><a data="{$v.id}" type="qq"class="Removebind">解绑</a></td></tr></tbody>{/foreach}</table>'
		}
{if $list.wechat}		
,		{

			title: '微信<font class="gray">（<font class="Num_wechat">{$count.wechat}</font>）</font>', 
			content: '<table class="tablelist" style="width:698px;border-bottom: solid 1px #eee;"><thead><tr><td width="24%">最后登录信息</td><td width="24%">最后登录时间</td><td width="24%">绑定时间</td><td width="18%">最后登录IP</td><td width="10%">操作</td></tr>  </thead><tbody><tr><td valign=middle><img style="vertical-align:middle;" src="http://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLWRppric7w8veV4cw94NDWOnTVRHtQVcqGjx92nwpxibAibPLjwiaZBHy8hHf1aZVR4zWu4Ez3YTfnPA/0" height=24  width=24>  a</td><td>2018-01-09 01:12:57</td><td>2018-01-09 01:12:57</td><td>218.98.53.83</td><td><a data=79201 type="wechat"class="Removebind">解绑</a></td></tr></tbody></table>'
		}
{/if}		
]  ,success: function(a){
       layertabs(a);
	   a.find('.layui-layer-title').find('span:contains("'+cur+'")').mousedown();
}
	});
	});
$('.Removebind').live('click', function(){
	 var $this=$(this);
	 layer.confirm('<b>\u60a8\u786e\u5b9a\u8981<font color="red">'+$(this).html()+'</font>\u8be5\u7b2c\u4e09\u65b9\u5e10\u53f7\u5417\uff1f</b>', {icon:3}, function(index){
		 Aform($this.attr('class'),"&id="+$this.attr('data'));  
	});
  });

function Regular_login(str,is){
layer.confirm('<b>\u60a8\u786e\u5b9a\u8981<font color="'+(str==1?'red':'blue')+'">'+$(is).html()+'</font>\u5e38\u89c4\u767b\u5f55\u5417？</b><br><font color="#666666">\u64cd\u4f5c\u540e\u5373'+(str==1?'\u5141\u8bb8':'\u7981\u6b62')+'\u4f7f\u7528\u5e10\u53f7\u002b\u5bc6\u7801\u65b9\u5f0f\u8fdb\u884c\u767b\u5f55</font>', {icon:4}, function(index){
	if(str==1){
		layer.closeAll();
		layer.prompt({
			formType:1,
			title:"\u8bf7\u8f93\u5165\u5b89\u5168\u7801"
		},function(value,index,elem){
			Aform("Regular_login","id="+str+'&safe='+value);  
		});
	}else{
		Aform("Regular_login","id="+str);  
	}
});
}
 function whitelist(){
	$.get('/html/whitelist', function(html){
			layer_ly(html,'<font color=blue>\u767b\u5f55\u767d\u540d\u5355</font>',false,'600px');
	});
}
//layer tab 优化
function layertabs(a){
	var b = a.find(".layui-layer-title").children(),
	c = a.find(".layui-layer-tabmain").children();
	b.on("mousedown", function (a) {
		a.stopPropagation ? a.stopPropagation() : a.cancelBubble = !0;
		var b = $(this),
		d = b.index();
		b.addClass("layui-layer-tabnow").siblings().removeClass("layui-layer-tabnow"),
		c.eq(d).show().siblings().hide();
	});
}
//绑定提示
function BindLogin(){
	layer.alert('<b><font color=red>\u56e0\u8fdb\u884c\u6b64\u9879\u64cd\u4f5c\u540e\u5c06\u5173\u95ed\u5e38\u89c4\u767b\u5f55</font><br><font color=blue>\u6545\u60a8\u9700\u81f3\u5c11\u7ed1\u5b9a\u4e00\u4e2a\u5feb\u6377\u767b\u5f55\u5e10\u53f7</font></b>',{icon: 0},function(index){
		scTop('.SafeLogin',0);
		setTimeout(function(){	layer.tips('\u60a8\u53ef\u4ee5\u5728\u8fd9\u91cc\u7ed1\u5b9a\u5feb\u6377\u767b\u5f55\uff01','.SafeLogin',{tips:[1,'#78BA32']});},800);
		layer.close(index);
	});
}
</script> 
</div>
</div>
{include file="bottom"}</body>
</html>